<?php
require_once('src/vo/BaseVO.php');
require_once('src/vo/PlayerStatsVO.php');

class GameStatsVO extends BaseVO {
     public $players;
      
     public function __construct() {
          $this->players = array();
     }
     
     public function init($playerList, $flags) {     
       foreach($playerList as $player) {
          $playerStats = new PlayerStatsVO();
          $playerStats->name = $player->name;          
          $playerStats->init($playerList, $flags);
          $this->players[$player->name] = $playerStats;  
       }     
     }                        
     
}
?>